package com.sky.context;

public class BaseContext {

    public static ThreadLocal<Long> currentId = new ThreadLocal<>();

    public static ThreadLocal<Long> startTime=new ThreadLocal<>();

    public static void setCurrentId(Long id) {
        currentId.set(id);
    }

    public static Long getCurrentId() {
        return currentId.get();
    }

    public static void removeCurrentId() {
        currentId.remove();
    }

    public static void setStartTime(Long id) {
        startTime.set(id);
    }

    public static Long getStartTime() {
        return startTime.get();
    }

    public static void removeStartTime() {
        startTime.remove();
    }

}
